﻿using CNative.Cloud.DNS.Runtime;
using CNative.Cloud.Protocol.Udp.Runtime;
using CNative.IModuleServices.Common;
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace CNative.Modules.Common.Domain
{
    public class UdpService : UdpBehavior, IDnsService
    {
        public override async Task<bool> Dispatch(IEnumerable<byte> bytes)
        {
            await this.GetService<IMediaService>().Push(bytes);
            return await Task.FromResult(true);
        }
    }
}
